<?php

$lifeTime = 24 * 3600;
session_set_cookie_params($lifeTime);
session_start(); //开启session会话
header("Content-Type:text/html;charset=utf-8");
$_SESSION['name'] = 'limi';
//setcookie(session_name(),session_id(),time() + $lifeTime);
var_dump($_SESSION,session_id(),session_name(),session_get_cookie_params());

include "session_ini.php";